"use strict";
cc._RF.push(module, 'c659fJUbo5O8Y49SnPxSpVn', 'GamePKOverView');
// scripts/GamePKOverView.js

"use strict";

var t = require;
var e = module;
var o = exports;

var _i,
    n = void 0 && (void 0).__extends || (_i = function i(t, e) {
  return (_i = Object.setPrototypeOf || {
    __proto__: []
  } instanceof Array && function (t, e) {
    t.__proto__ = e;
  } || function (t, e) {
    for (var o in e) {
      Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
    }
  })(t, e);
}, function (t, e) {
  function o() {
    this.constructor = t;
  }

  _i(t, e), t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
}),
    a = void 0 && (void 0).__decorate || function (t, e, o, i) {
  var n,
      a = arguments.length,
      r = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, o, i);else for (var s = t.length - 1; s >= 0; s--) {
    (n = t[s]) && (r = (a < 3 ? n(r) : a > 3 ? n(e, o, r) : n(e, o)) || r);
  }
  return a > 3 && r && Object.defineProperty(e, o, r), r;
};

Object.defineProperty(o, "__esModule", {
  value: !0
});

var r = t("GlobalUserData"),
    s = t("Util"),
    l = t("GameConstant"),
    c = t("BroadCastMessage"),
    d = t("HallConstant"),
    h = t("GoldFlyAnim"),
    p = t("Global"),
    u = t("GameSpeedClickView"),
    f = cc._decorator,
    m = f.ccclass,
    _ = f.property,
    y = t("HallConstant"),
    g = t("ScreenShotNode"),
    v = t("WXSDK"),
    C = t("Common"),
    b = t("ChampionManager"),
    w = t("GradeChance"),
    S = t("CarIconView"),
    I = t("SceneManager"),
    B = t("LoadingScene"),
    T = t("NativeManager"),
    A = function (t) {
  function e() {
    var e = null !== t && t.apply(this, arguments) || this;
    return e.pfb_FlyGold = null, e.node_iconGold = null, e.pfb_black = null, e.node_Over1 = null, e.node_Over2 = null, e.node_guide = null, e.lab_leftName = null, e.node_leftHead = null, e.arr_lifeLeft = new Array(3), e.lab_rightName = null, e.node_rightHead = null, e.arr_lifeRight = new Array(3), e.node_win = null, e.node_fail = null, e.lab_trophy = null, e.lab_gold = null, e.lab_totalGame = null, e.lab_winRate = null, e.lab_totalTrophy = null, e.lab_ranking = null, e.node_again = null, e.node_back = null, e.node_back_match = null, e.pfb_speedClick = null, e.node_more_game = null, e.node_award = new Array(4), e.videoIcon = null, e.TTVideoIcon = null, e.node_recorder = null, e.screenShotSprite = null, e.node_mistake_publish = null, e.TTBtnGet = null, e.spr_head = null, e.spr__enemyhead = null, e.label_trophy = null, e.label_etrophy = null, e.pfb_chance = null, e.node_leftCarIcon = null, e.node_rightCarIcon = null, e.pfb_carIcon = null, e._gameControl = null, e.nPreStartWinning = 0, e.nWinningMaskWidth = 0, e.bGameWin = !1, e.rEquipBodyData = null, e.rEquipWheelData = null, e.rEquipWeaponData = null, e.rEquipToolsData = null, e.nGetGold = 0, e.nGetTrophy = 0, e.mistakeBannerTimer = null, e.btnGet = null, e.btn_mutilGet = null, e.btnShowAd = null, e.btnShare = null, e.isBtnClickOnce = !1, e.clickNum = s.Util.getRandomInt(1, 3), e.obj = {
      a: 0
    }, e.isUpdate = !1, e.firstBannerTouch = !0, e;
  }

  return n(e, t), e.prototype.onLoad = function () {
    if (this.node_recorder.active = !1, this.node.active = !1, this.node_mistake_publish.active = !1, s.Util.videoExposure(p.VideoTab.dim2), s.Util.event_dispatcher.register(this), s.Util.is_OPPO()) {
      this.node_more_game.active = !1;

      for (var t = 0, e = this.node_award; t < e.length; t++) {
        e[t].y += 20;
      }
    }

    s.Util.is_VIVO() && (this.node_more_game.active = !1);
  }, e.prototype.onDestroy = function () {
    s.Util.showSingleCustomAd(), s.Util.hideEndUISingleCustomAd(), s.Util.event_dispatcher.remove(this);
  }, e.prototype.start = function () {
    var t = this;
    s.Util.is_tt() && (this.node_more_game.active = !1, this.videoIcon.active = !1, this.TTVideoIcon.active = !0, this.TTBtnGet.active = !1, r["default"].bAuditMode ? (this.btnGet.active = !1, this.btn_mutilGet.x = 150, this.TTBtnGet.active = !0) : this.node_mistake_publish.active = !0), this.scheduleOnce(function () {
      b["default"].Ins.setGradeWithFrame(t.spr_head), b["default"].Ins.setGradeWithFrame(t.spr__enemyhead, r["default"].enemyTrophy);
    }, .2), this.label_trophy.string = r["default"].nTrophy.toString(), this.label_etrophy.string = r["default"].enemyTrophy.toString(), s.Util.is_wx() || this.node_more_game && (this.node_more_game.active = !1), r["default"].intersAndMatrixSwitch++, r["default"].majiaGameNum++, s.Util.hideSingleCustomAd(), s.Util.showEndUISingleCustomAd(), s.Util.superCarSwapData(!1);
  }, e.prototype.onEnable = function () {}, e.prototype.init = function (t, e, o, i, n) {
    this._gameControl = t, this.rEquipBodyData = e, this.rEquipWheelData = o, this.rEquipWeaponData = i, this.rEquipToolsData = n;
  }, e.prototype.initRightView = function (t, e) {
    this.lab_rightName.string = t, this.node_rightHead.spriteFrame = e;
  }, e.prototype.onGameStart = function () {
    this.node.active = !1, this.node_win.active = !1, this.node_fail.active = !1, this.nPreStartWinning = r["default"].nWinning;
  }, e.prototype.onGameOver = function (t, e) {
    this.node_guide.active = !1, r["default"].nGuideStep == d.Guide_Step.Fight && r["default"].saveGuideStepData(d.Guide_Step.Box_Get), r["default"].nGuideStep == d.Guide_Step.Fight2 && r["default"].saveGuideStepData(d.Guide_Step.Box_Get2);

    for (var o = 0; o < t.length; o++) {
      var i = t[o],
          n = cc.instantiate(this.pfb_carIcon);
      this.refreshCarIconView(n.getComponent(S["default"]), i), this.node_leftCarIcon.addChild(n);
    }

    for (o = 0; o < e.length; o++) {
      i = e[o], n = cc.instantiate(this.pfb_carIcon), this.refreshCarIconView(n.getComponent(S["default"]), i), this.node_rightCarIcon.addChild(n);
    }

    for (var a = 0; a < this.arr_lifeLeft.length; a++) {
      a < this._gameControl.nLeftWinBount ? this.arr_lifeLeft[a].active = !0 : this.arr_lifeLeft[a].active = !1;
    }

    for (a = 0; a < this.arr_lifeRight.length; a++) {
      a < this._gameControl.nRightWinBount ? this.arr_lifeRight[a].active = !0 : this.arr_lifeRight[a].active = !1;
    }

    this.node.active = !0;
  }, e.prototype.refreshCarIconView = function (t, e) {
    t.init(e.EquipCarBody, e.EquipCarWheel, e.EquipCarWeapon, e.EquipCarTools, e.IsSelf), this.scheduleOnce(function () {
      t.endState(e.State);
    }, .2);
  }, e.prototype.onBtnShowCustomAd = function () {
    var t = cc.instantiate(this.pfb_black);
    t.parent = this.node;
    var e = {
      caller: this,
      success: function success() {},
      failed: function failed() {},
      error: function error() {
        t && t.destroy();
      }
    };
    s.Util.show_matrixAd(e), this.node_Over1.activeInHierarchy && s.Util.hideBanner();
  }, e.prototype.hideCustomAdBlack = function () {
    this.node_Over1.activeInHierarchy && s.Util.showBanner();
  }, e.prototype.onGameWin = function () {
    this.bGameWin = !0, this.node_win.active = !0, this.node_fail.active = !1, this.initOverView1();
  }, e.prototype.onGameFail = function () {
    this.bGameWin = !1, this.node_win.active = !1, this.node_fail.active = !0, this.initOverView1();
  }, e.prototype.initOverView1 = function () {
    if (s.Util.is_tt() ? (g["default"].processData(), s.Util.showInterstitialAd(null, function () {
      s.Util.showBanner(!0);
    })) : s.Util.hideBanner(), s.Util.is_VIVO() ? s.Util.showInterstitialAd(null, function () {
      s.Util.showNativeGridAd(), r["default"].bAuditMode && s.Util.showBanner();
    }) : s.Util.is_OPPO() || s.Util.showNativeGridAd(), s.Util.is_233() && T["default"].instance.showFullVideoAd(), s.Util.is_HW() && s.Util.showBanner(), s.Util.refreshBanner(), this.btnShowAd.active = !1, s.Util.objectPool.clearNodePool(), !r["default"].bAuditMode) {
      var t = r["default"].nTotalGame % 6;
      s.Util.is_qg() && !r["default"].bAuditMode && r["default"].nativeMistakeBannerList[t] || s.Util.is_qg() && !s.Util.is_OPPO && s.Util.showBanner();
    }

    s.Util.is_OPPO && (console.log("oppo展示横幅广告"), s.Util.showGameBannerAd()), s.Util.is_wx() && (r["default"].wx_channel == B.WXChannel.MIAOXING ? (s.Util.hideBanner(), s.Util.showMajiaCustomAd()) : (s.Util.showBanner(), this.btnGet.setPosition(400, -290), this.btn_mutilGet.setPosition(-400, -290))), this.node_Over1.active = !0, this.node_Over2.active = !1;
    var e = s.Util.itemHighestLevel() >= 10,
        o = s.Util.getRandomInt(2 * Math.pow(s.Util.itemHighestLevel(), 3), 2.3 * Math.pow(s.Util.itemHighestLevel(), 3)),
        i = s.Util.getRandomInt(.6 * Math.pow(s.Util.itemHighestLevel(), 3), 1.3 * Math.pow(s.Util.itemHighestLevel(), 3));
    this.bGameWin ? this.nGetGold = e ? o : s.Util.getRandomInt(300, 500) : this.nGetGold = e ? i : s.Util.getRandomInt(100, 300), this.nGetTrophy = Math.round(this.getTrophyNum() * b["default"].Ins.getTrophyMulti(this.bGameWin));
    var n = b["default"].Ins.getGradeLevel(r["default"].nTrophy),
        a = b["default"].Ins.getGradeLevel(r["default"].nTrophy + this.nGetTrophy);

    if (n != a) {
      var l = cc.instantiate(this.pfb_chance);
      this.node.addChild(l);
      var c = l.getComponent(w["default"]);
      a > n ? (this.playAudio("level_up"), c.init(!0, r["default"].nTrophy + this.nGetTrophy)) : (this.playAudio("level_down"), c.init(!1, r["default"].nTrophy + this.nGetTrophy));
    }

    this.nGetTrophy < 0 && r["default"].nTrophy + this.nGetTrophy < 0 && (this.nGetTrophy = -r["default"].nTrophy), this.nGetTrophy < 0 ? this.lab_trophy.string = "-" + Math.abs(this.nGetTrophy) : this.lab_trophy.string = "+" + this.nGetTrophy, this.nGetGold += Math.round(this.nGetGold * b["default"].Ins.getGradeBuff(r["default"].nTrophy, null).goldBuff), this.lab_gold.string = "+" + s.Util.transformGoldStr(this.nGetGold) + "(+" + s.Util.transformGoldStr(Math.round(this.nGetGold * b["default"].Ins.getGradeBuff(r["default"].nTrophy, null).goldBuff)) + ")";
  }, e.prototype.getTrophyNum = function () {
    var t = {
      "3:0": 30,
      "3:1": 20,
      "3:2": 15,
      "0:3": -15,
      "1:3": -10,
      "2:3": -5,
      "1:1": 0,
      "1:0": 30,
      "0:1": 0,
      "2:0": 30,
      "2:1": 20,
      "0:2": -10,
      "1:2": -5,
      "2:2": 0
    },
        e = this._gameControl.nLeftWinBount + ":" + this._gameControl.nRightWinBount;
    return t[e] ? t[e] : 0;
  }, e.prototype.onBtnMutilGet = function () {
    var t = this;
    r["default"].clickUpgradeTimes++, r["default"].clickUpgradeTimes >= r["default"].upgradeVideoList.length && (r["default"].clickUpgradeTimes = 0), C["default"].getIns().logEvent(C.LogEventType.GameOverGet6, r["default"]._strOldUser + "" + r["default"].nTotalGame, 2), this.playAudio(l.Game_Audio_ID.btn_click), s.Util.showRewardVideo(function () {
      t.nGetGold = 6 * t.nGetGold, t.nGetTrophy > 0 && (t.nGetTrophy = t.nGetTrophy), t.btnGet.getComponent(cc.Button).interactable = !1, t.btn_mutilGet.getComponent(cc.Button).interactable = !1, v["default"].getIntance().expt_GetGold(t.nGetGold), r["default"].saveGoldData(!0, t.nGetGold), r["default"].saveTrophyData(!0, t.nGetTrophy), t.freshTrophy(), t.playGetGoldAnim(function () {
        t.initOverView2();
      });
    });
  }, e.prototype.onBtnGet = function () {
    var t = this;
    s.Util.isVideorSwitchOn("jssp") ? s.Util.showRewardVideo(function () {
      t.nGetGold = 6 * t.nGetGold, t.nGetTrophy > 0 && (t.nGetTrophy = t.nGetTrophy), t.btnGet.getComponent(cc.Button).interactable = !1, t.btn_mutilGet.getComponent(cc.Button).interactable = !1, v["default"].getIntance().expt_GetGold(t.nGetGold), r["default"].saveGoldData(!0, t.nGetGold), r["default"].saveTrophyData(!0, t.nGetTrophy), t.freshTrophy(), t.playGetGoldAnim(function () {
        t.initOverView2();
      });
    }, function () {
      r["default"].saveGoldData(!0, t.nGetGold), r["default"].saveTrophyData(!0, t.nGetTrophy), t.initOverView2();
    }, function () {
      r["default"].saveGoldData(!0, t.nGetGold), r["default"].saveTrophyData(!0, t.nGetTrophy), t.initOverView2();
    }) : this.onGet();
  }, e.prototype.onGet = function () {
    var t = this;
    r["default"].repeatClick && this.clickNum > 0 ? this.clickNum-- : this.isBtnClickOnce || r["default"].bAuditMode || !r["default"].isShowMistakeBanner ? (this.isBtnClickOnce = !1, C["default"].getIns().logEvent(C.LogEventType.GameOverGet1, r["default"]._strOldUser + "" + r["default"].nTotalGame, 2), this.btnGet.getComponent(cc.Button).interactable = !1, this.btn_mutilGet.getComponent(cc.Button).interactable = !1, r["default"].clickUpgradeTimes++, r["default"].clickUpgradeTimes >= r["default"].upgradeVideoList.length && (r["default"].clickUpgradeTimes = 0), this.playAudio(l.Game_Audio_ID.btn_click), r["default"].saveGoldData(!0, this.nGetGold), r["default"].saveTrophyData(!0, this.nGetTrophy), this.freshTrophy(), r["default"].repeatClick ? (this.playGetGoldAnim(function () {}), this.initOverView2()) : this.playGetGoldAnim(function () {
      t.initOverView2();
    })) : this.isBtnClickOnce = !0;
  }, e.prototype.freshTrophy = function () {
    var t = this;
    Number(this.label_trophy.string) != r["default"].nTrophy && (this.isUpdate = !0, this.label_trophy.node.scale = 1.5, cc.tween(this.obj).to(.5, {
      a: r["default"].nTrophy
    }).call(function () {
      t.label_trophy.node.scale = 1;
    }).start());
  }, e.prototype.update = function () {
    this.isUpdate && (this.label_trophy.string = Math.floor(this.obj.a).toString());
  }, e.prototype.initOverView2 = function () {
    var t = this;
    s.Util.is_tt() ? (this.showShareRecorderNode(), this.node_back_match.x = -150, this.node_back.x = -150, this.node_again.x = 150, this.btnShare.x = 150, this.node_back_match.y = -250, this.node_back.y = -250, this.node_again.y = -250, this.btnShare.y = -250, this.btnShare.active = !0, r["default"].gameMode == p.GameMode.Match ? this.btnShare.active = !0 : this.btnShare.active = !1) : this.btnShare.active = !1, s.Util.is_qg() && (this.node_back_match.x = 0, this.node_back.x = -150, this.node_again.x = 150), s.Util.is_OPPO() || s.Util.is_VIVO() ? (s.Util.showNativeOverView(null, null, !0), s.Util.hideGameBannerAd(), s.Util.hideNativeBanner(), r["default"].bAuditMode && s.Util.hideNativeGridAd()) : (s.Util.hideMistakeBanner(), s.Util.hideGridAd(), s.Util.showEndUISingleCustomAd(), s.Util.is_wx() && (r["default"].intersAndMatrixSwitch % 2 == 0 && r["default"].wx_channel == B.WXChannel.BIAOCHE ? this.onBtnShowCustomAd() : s.Util.showInterstitialAd())), this.showGuide(), clearTimeout(this.mistakeBannerTimer), s.Util.hideMajiaCustomAd(), this.node_Over1.active = !1, this.node_Over2.active = !0, this.lab_totalGame.string = r["default"].nTotalGame.toString();
    var e = (100 * r["default"].nTotalWin / r["default"].nTotalGame).toPrecision(3);
    this.lab_winRate.string = e + "%", this.lab_totalTrophy.string = r["default"].nTrophy.toString(), this.lab_ranking.string = this.getRankingNum(r["default"].nTrophy).toString(), r["default"].gameMode == p.GameMode.Match ? (this.node_again.active = !1, this.node_back_match.active = !0, this.node_back.active = !1, s.Util.isBannerSwitchOn() ? (s.Util.hideBanner(), this.node_back_match.x = 0, setTimeout(function () {
      v["default"].getIntance().show_majia_banner(function () {
        t.node_back_match.x = -486.165;
      });
    }, 1e3 * r["default"].majiaDelay)) : (r["default"].bannerOnRight ? (this.node_back_match.x = 0, s.Util.showBanner(!1, !0)) : s.Util.showBanner(), s.Util.showInterstitialAd())) : (this.node_again.active = !0, this.node_back_match.active = !1, this.node_back.active = !0, s.Util.isBannerSwitchOn() ? (s.Util.hideBanner(), this.node_again.x = 162.652, this.node_back.x = -162.652, setTimeout(function () {
      v["default"].getIntance().show_majia_banner(function () {
        t.node_again.x = 480, t.node_back.x = -480;
      });
    }, 1e3 * r["default"].majiaDelay)) : (r["default"].bannerOnRight ? (this.node_again.x = 162.652, this.node_back.x = -162.652, s.Util.showBanner(!1, !0)) : s.Util.showBanner(), s.Util.showInterstitialAd()));
  }, e.prototype.showShareRecorderNode = function () {
    if (this.node_recorder.active = !0, r["default"].screenShotSF) {
      var t = this.screenShotSprite.node.width,
          e = this.screenShotSprite.node.height;
      this.screenShotSprite.spriteFrame = r["default"].screenShotSF, this.screenShotSprite.node.width = t, this.screenShotSprite.node.height = e;
    }
  }, e.prototype.onBtnShareRecorder = function () {
    s.Util.shareRecordVideo();
  }, e.prototype.onBtnCloseNodeRecorder = function () {
    var t = this;
    this.node_recorder.active = !1, r["default"].bAuditMode || (setTimeout(function () {
      s.Util.showBanner();
    }, 500), setTimeout(function () {
      t.node_back_match.x = -480, t.btnShare.x = 480, t.node_back.x = -480, t.node_again.x = 480;
    }, 2e3));
  }, e.prototype.showGuide = function () {
    if (this.node_guide.active) {
      var t = null;
      if (!this.node_guide.getChildByName("handpos").getChildByName("hand")) return;
      (t = this.node_guide.getChildByName("handpos").getChildByName("hand")).stopAllActions(), t.position = cc.v3(0, 0, 0);
      var e = cc.tween().by(1, {
        y: 100
      }, {
        easing: "sineIn"
      }),
          o = cc.tween().by(1, {
        y: -100
      }, {
        easing: "sineOut"
      }),
          i = cc.tween().sequence(e, o);
      return cc.tween(t).repeatForever(i).start();
    }
  }, e.prototype.getRankingNum = function (t) {
    if (t >= 1500) return 1;
    var e = 4.8118 * Math.pow(10, -11) * Math.pow(t - 100, 5);
    return e = e - 2.1078 * Math.pow(10, -7) * Math.pow(t - 100, 4) - 3.0038 * Math.pow(10, -4) * Math.pow(t - 100, 3) - .0842 * Math.pow(t - 100, 2) - 141.4983 * (t - 100) + 89830, Math.floor(e);
  }, e.prototype.onBtnBackHall = function () {
    var t = this;
    this.playAudio(l.Game_Audio_ID.btn_click), s.Util.hideSingleCustomAd(!0), s.Util.hideSingleCustomAd(!1), s.Util.hideBanner(), v["default"].getIntance().hide_majia_banner(), s.Util.hideNativeBanner(), this.node_back.getComponent(cc.Button).interactable = !1;
    var e = {
      caller: this,
      success: function success() {
        t.scheduleOnce(function () {
          t.node_back.getComponent(cc.Button).interactable = !0, s.Util.hideMistakeTouchBanner();
        }, 2), t.firstBannerTouch = !1;
      },
      error: function error() {
        t.backHall();
      },
      failed: function failed() {
        t.backHall();
      }
    };
    this.firstBannerTouch ? s.Util.showMistakeTouchBanner(e, !0) : this.backHall();
  }, e.prototype.backHall = function () {
    if (r["default"].isArenaView = !1, s.Util.superCarSwapData(!1), C["default"].getIns().logEvent(C.LogEventType.GameOver2Back, r["default"]._strOldUser + "" + r["default"].nTotalGame, 2), s.Util.is_qg() && !r["default"].bAuditMode && s.Util.hasHallNativeBanner()) {
      for (var t = r["default"].nTotalGame % 6, e = 0, o = 0; o < r["default"].arrOwnBox.length; o++) {
        var i = r["default"].arrOwnBox[o].state;
        i != y.Box_State.Lock && i != y.Box_State.Unlock && i != y.Box_State.Open || e++;
      }

      r["default"].clickBoxNativeList[t] && 0 == e && (console.log("获得误触宝箱"), r["default"].saveBoxData(!0, {
        state: y.Box_State.Lock,
        time: 0
      }), r["default"].isClickBoxNative = !0);
    }

    I.SceneManager.Instance.runScene(I.SceneName.hall, function () {
      if (s.Util.is_qg() && !r["default"].bAuditMode) {
        var t = r["default"].nTotalGame % 6;
        r["default"].installShortCutList[t] && s.Util.installShortCut();
      }

      setTimeout(function () {
        s.Util.showPanelBackHome();
      }, 1e3);
    });
  }, e.prototype.onClickNativeBanner = function () {
    s.Util.clickNativeBanner(2);
  }, e.prototype.onCreateSpeed = function (t) {
    s.Util.hideSingleCustomAd(!0), s.Util.hideSingleCustomAd(!1);
    var e = cc.instantiate(this.pfb_speedClick);
    this.node.addChild(e), e.getComponent(u["default"]).initView(function () {
      t();
    });
  }, e.prototype.onBtnAgainGame = function () {
    var t = this,
        e = function e() {
      t.playAudio(l.Game_Audio_ID.btn_click), s.Util.hideSingleCustomAd(!0), s.Util.hideSingleCustomAd(!1), s.Util.hideBanner(), t.node.active = !1, r["default"].gameMode == p.GameMode.Match ? t._gameControl.onRestartGame() : cc.director.loadScene("gamePK");
    },
        o = !1;

    if (0 == r["default"].bAuditMode) {
      var i = r["default"].nTotalGame % 6;
      r["default"].arrShowSpeed && r["default"].arrShowSpeed[i] && s.Util.canShowGiftRush() && (o = !0, this.onCreateSpeed(e));
    }

    o || e();
  }, e.prototype.playGetGoldAnim = function (t) {
    this.playAudio(d.Audio_ID.get_gold);
    var e = cc.v3(200, cc.winSize.height, 0);
    s.Util.AnimFly(h.Fly_Type.Gold, this.pfb_FlyGold, this.node_iconGold, e, function () {
      t && t();
    }, function () {});
  }, e.prototype.playAudio = function (t) {
    this._gameControl ? this._gameControl.playAudio(t) : c["default"].getInstance().SendMessage(l.Game_Broadcast_Func.Audio, t);
  }, a([_(cc.Prefab)], e.prototype, "pfb_FlyGold", void 0), a([_(cc.Node)], e.prototype, "node_iconGold", void 0), a([_(cc.Prefab)], e.prototype, "pfb_black", void 0), a([_(cc.Node)], e.prototype, "node_Over1", void 0), a([_(cc.Node)], e.prototype, "node_Over2", void 0), a([_(cc.Node)], e.prototype, "node_guide", void 0), a([_(cc.Label)], e.prototype, "lab_leftName", void 0), a([_(cc.Sprite)], e.prototype, "node_leftHead", void 0), a([_(cc.Node)], e.prototype, "arr_lifeLeft", void 0), a([_(cc.Label)], e.prototype, "lab_rightName", void 0), a([_(cc.Sprite)], e.prototype, "node_rightHead", void 0), a([_(cc.Node)], e.prototype, "arr_lifeRight", void 0), a([_(cc.Node)], e.prototype, "node_win", void 0), a([_(cc.Node)], e.prototype, "node_fail", void 0), a([_(cc.Label)], e.prototype, "lab_trophy", void 0), a([_(cc.Label)], e.prototype, "lab_gold", void 0), a([_(cc.Label)], e.prototype, "lab_totalGame", void 0), a([_(cc.Label)], e.prototype, "lab_winRate", void 0), a([_(cc.Label)], e.prototype, "lab_totalTrophy", void 0), a([_(cc.Label)], e.prototype, "lab_ranking", void 0), a([_(cc.Node)], e.prototype, "node_again", void 0), a([_(cc.Node)], e.prototype, "node_back", void 0), a([_(cc.Node)], e.prototype, "node_back_match", void 0), a([_(cc.Prefab)], e.prototype, "pfb_speedClick", void 0), a([_(cc.Node)], e.prototype, "node_more_game", void 0), a([_(cc.Node)], e.prototype, "node_award", void 0), a([_(cc.Node)], e.prototype, "videoIcon", void 0), a([_(cc.Node)], e.prototype, "TTVideoIcon", void 0), a([_(cc.Node)], e.prototype, "node_recorder", void 0), a([_(cc.Sprite)], e.prototype, "screenShotSprite", void 0), a([_(cc.Node)], e.prototype, "node_mistake_publish", void 0), a([_(cc.Node)], e.prototype, "TTBtnGet", void 0), a([_(cc.Sprite)], e.prototype, "spr_head", void 0), a([_(cc.Sprite)], e.prototype, "spr__enemyhead", void 0), a([_(cc.Label)], e.prototype, "label_trophy", void 0), a([_(cc.Label)], e.prototype, "label_etrophy", void 0), a([_(cc.Prefab)], e.prototype, "pfb_chance", void 0), a([_(cc.Node)], e.prototype, "node_leftCarIcon", void 0), a([_(cc.Node)], e.prototype, "node_rightCarIcon", void 0), a([_(cc.Prefab)], e.prototype, "pfb_carIcon", void 0), a([_(cc.Node)], e.prototype, "btnGet", void 0), a([_(cc.Node)], e.prototype, "btn_mutilGet", void 0), a([_(cc.Node)], e.prototype, "btnShowAd", void 0), a([_(cc.Node)], e.prototype, "btnShare", void 0), a([m], e);
}(cc.Component);

o["default"] = A;

cc._RF.pop();